package com.manage.service.impl;

import com.manage.pojo.FlowerOrder;
import com.manage.mapper.FlowerOrderMapper;
import com.manage.service.FlowerOrderService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 晚云
 * @since 2023-09-11
 */
@Service
public class FlowerOrderServiceImpl extends ServiceImpl<FlowerOrderMapper, FlowerOrder> implements FlowerOrderService {

    @Autowired
    private FlowerOrderMapper flowerOrderMapper;
    /**
     * 计算总销售额
     *
     * @param list
     * @return
     */
    @Override
    public double select_price(List<String> list) {
        double price = flowerOrderMapper.select_price(list);
        return price;
    }
}
